<?php /* Smarty version Smarty-3.1.6, created on 2015-09-06 09:52:10
         compiled from "F:/wamp/www/tmall/Admin/View\Role\distribute.html" */ ?>
<?php /*%%SmartyHeaderCode:689755eb9c4a7ca8a9-29753929%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'deaf14af4f4133985c6874107655bfdf3271644e' => 
    array (
      0 => 'F:/wamp/www/tmall/Admin/View\\Role\\distribute.html',
      1 => 1396511518,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '689755eb9c4a7ca8a9-29753929',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'role_info' => 0,
    'auth_infoa' => 0,
    'v' => 0,
    'auth_arr' => 0,
    'auth_infob' => 0,
    'vv' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_55eb9c4a8b106',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55eb9c4a8b106')) {function content_55eb9c4a8b106($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>添加权限</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8">
        <link href="<?php echo @ADMIN_CSS_URL;?>
mine.css" type="text/css" rel="stylesheet">
            
        <style type="text/css">
            li{list-style: none;}
        </style>
            
    </head>

    <body>

        <div class="div_head">
            <span>
                <span style="float:left">当前位置是：权限管理-》给角色添加权限信息</span>
                <span style="float:right;margin-right: 8px;font-weight: bold">
                    <a style="text-decoration: none" href="<?php echo @__CONTROLLER__;?>
/showlist">【返回】</a>
                </span>
            </span>
        </div>
        <div></div>

        <div style="font-size: 13px;margin: 10px 5px">
            <div>正在为角色：<span style="color:red;font-size:20px;font-weight: bold;"><?php echo $_smarty_tpl->tpl_vars['role_info']->value['role_name'];?>
</span>分配权限</div>
            <form action="<?php echo @__SELF__;?>
" method="post" enctype="multipart/form-data">
                <ul>
                    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['auth_infoa']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
<li><input type="checkbox" <?php if (in_array($_smarty_tpl->tpl_vars['v']->value['auth_id'],$_smarty_tpl->tpl_vars['auth_arr']->value)){?>checked='checked'<?php }?> name="auth[]" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['auth_id'];?>
"/><?php echo $_smarty_tpl->tpl_vars['v']->value['auth_name'];?>
</li>
                    <?php  $_smarty_tpl->tpl_vars['vv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['vv']->_loop = false;
 $_smarty_tpl->tpl_vars['kk'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['auth_infob']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['vv']->key => $_smarty_tpl->tpl_vars['vv']->value){
$_smarty_tpl->tpl_vars['vv']->_loop = true;
 $_smarty_tpl->tpl_vars['kk']->value = $_smarty_tpl->tpl_vars['vv']->key;
?>
                    <?php if ($_smarty_tpl->tpl_vars['vv']->value['auth_pid']==$_smarty_tpl->tpl_vars['v']->value['auth_id']){?>
                    <li>
                        <ul>
                            <li><input type="checkbox" <?php if (in_array($_smarty_tpl->tpl_vars['vv']->value['auth_id'],$_smarty_tpl->tpl_vars['auth_arr']->value)){?>checked='checked'<?php }?> name="auth[]" value="<?php echo $_smarty_tpl->tpl_vars['vv']->value['auth_id'];?>
"/><?php echo $_smarty_tpl->tpl_vars['vv']->value['auth_name'];?>
</li>
                        </ul>
                    </li>
                    <?php }?>
                    <?php } ?>
                    <?php } ?>
                </ul>
                <input type="submit" value="分配权限" />
            </form>
        </div>
    </body>
</html>
<?php }} ?>